package com.gts.sofa.pojo;

import com.gts.sofa.anotation.MyAnotation;

/**
 *
 *
 */
@MyAnotation("hi") //这里如果对默认值不感兴趣可以重新的定义一个值
public class Person extends Creature<String> implements Comparable<Integer>{


    private int age;
    private String name;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public int compareTo(Integer o) {
        return o.compareTo(2);
    }
}
